﻿@model Bowerbird.Website.Models.ContactData.AddNewContactDataModel

@{
    ViewBag.Title = "Add New Contact Data";
}

<h2>Add New Contact Data</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    
        <p>
            @Html.LabelFor(model => model.ContactDataType)
        <br />
            @Html.DropDownListFor(model => model.ContactDataType, Model.ContactDataTypes)
            @Html.ValidationMessageFor(model => model.ContactDataType)
        </p>
        <p>
            @Html.LabelFor(model => model.Name)
        <br />
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </p>

        <p>
            @Html.LabelFor(model => model.Value)
        <br />
            @Html.EditorFor(model => model.Value)
            @Html.ValidationMessageFor(model => model.Value)
        </p>

        <p>
            @Html.Label("Visible to:")
        <br />
            @Html.ListBoxFor(model => model.VisibleTo, Model.VisibilityOptions)
            @Html.ValidationMessageFor(model => model.VisibleTo)
        </p>
    
        <p>
            @Html.ActionLink("Cancel", "Index", "Home")
            <input type="submit" value="Add" />
        </p>
}
